ThreadUtils

open class ThreadUtils

Utility class to verify if execution is running on the main thread.

Verification only runs for debug builds.

Functions

Link copied to clipboard
open fun checkThread(@NonNull origin: String)
Validates if execution is running on the main thread.
Link copied to clipboard
open fun init(@NonNull context: Context): ThreadUtils
Initialises the thread utils, verifies debug state of the consuming app.